package com.sinochem.yunlian.ship.base.vo.response;

import com.google.common.base.Objects;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Auther: panyanan
 * @Dscription:
 * @Date: Create in 2017/11/20 20:34
 **/
@Data
public class MaterialCategoryVo implements Serializable{

    private Long id;

    //货品名称
    private String categoryName;

    //父节点ID
    private Long parentId;

    //等级
    private Integer level;

    //状态
    private Integer status;

    //排序
    private Integer seqNum;

    //英文简写
    private String enName;

    private List<MaterialCategoryVo> childrens;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        MaterialCategoryVo that = (MaterialCategoryVo) o;
        return Objects.equal(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(super.hashCode(), id);
    }
}
